package home_work2;

public class test4 {

	public static void main(String[] args) {
		String str = "123abc456def789ghi";
		String s1=str.replaceAll("abc", "#char#");
		String s2=s1.replaceAll("def", "#char#");
		String s3=s2.replaceAll("ghi", "#char#");
		System.out.println(s3);
		
	}

}
